home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 August: Tool Chest / Apple_Developer_Group_August_1996_Tool_Chest.iso / Sample Code / Snippets / Toolbox / DateThing / DateThing.r < prev    next >
Encoding:
Text File  |  1993-08-05  |  4.5 KB  |  274 lines  |  [TEXT/MPS ]

  1. #include "Types.r"
  2.  
  3. resource 'MENU' (128, preload) {
  4.     128,
  5.     textMenuProc,
  6.     0x7FFFFFFD,
  7.     enabled,
  8.     apple,
  9.     {    /* array: 2 elements */
  10.         /* [1] */
  11.         "About", noIcon, noKey, noMark, plain,
  12.         /* [2] */
  13.         "-", noIcon, noKey, noMark, plain
  14.     }
  15. };
  16.  
  17. resource 'MENU' (129, preload) {
  18.     129,
  19.     textMenuProc,
  20.     0xE00,
  21.     enabled,
  22.     "File",
  23.     {    /* array: 10 elements */
  24.         /* [1] */
  25.         "New", noIcon, "N", noMark, plain,
  26.         /* [2] */
  27.         "Open", noIcon, "O", noMark, plain,
  28.         /* [3] */
  29.         "Close", noIcon, "W", noMark, plain,
  30.         /* [4] */
  31.         "Save", noIcon, "S", noMark, plain,
  32.         /* [5] */
  33.         "Save As...", noIcon, noKey, noMark, plain,
  34.         /* [6] */
  35.         "-", noIcon, noKey, noMark, plain,
  36.         /* [7] */
  37.         "Page Setup...", noIcon, noKey, noMark, plain,
  38.         /* [8] */
  39.         "Print...", noIcon, "P", noMark, plain,
  40.         /* [9] */
  41.         "-", noIcon, noKey, noMark, plain,
  42.         /* [10] */
  43.         "Quit", noIcon, "Q", noMark, plain
  44.     }
  45. };
  46.  
  47. resource 'MENU' (130, preload) {
  48.     130,
  49.     textMenuProc,
  50.     0x3400,
  51.     enabled,
  52.     "Edit",
  53.     {    /* array: 6 elements */
  54.         /* [1] */
  55.         "Undo", noIcon, "Z", noMark, plain,
  56.         /* [2] */
  57.         "-", noIcon, noKey, noMark, plain,
  58.         /* [3] */
  59.         "Cut", noIcon, "X", noMark, plain,
  60.         /* [4] */
  61.         "Copy", noIcon, "C", noMark, plain,
  62.         /* [5] */
  63.         "Paste", noIcon, "V", noMark, plain,
  64.         /* [6] */
  65.         "Clear", noIcon, noKey, noMark, plain
  66.     }
  67. };
  68.  
  69. resource 'MENU' (131) {
  70.     131,
  71.     textMenuProc,
  72.     0x7FFFFFD7,
  73.     enabled,
  74.     "Test Stuff",
  75.     {    /* array: 1 elements */
  76.         /* [1] */
  77.         "Show Date Dialog", noIcon, "D", noMark, plain
  78.     }
  79. };
  80.  
  81. resource 'DITL' (128, purgeable) {
  82.     {    /* array DITLarray: 4 elements */
  83.         /* [1] */
  84.         {164, 115, 184, 185},
  85.         Button {
  86.             enabled,
  87.             "OK"
  88.         },
  89.         /* [2] */
  90.         {5, 10, 59, 293},
  91.         StaticText {
  92.             disabled,
  93.             "The Simplest Shell\n\nModified to show the"
  94.             " DateThing"
  95.         },
  96.         /* [3] */
  97.         {76, 3, 154, 301},
  98.         StaticText {
  99.             disabled,
  100.             "FredWare from Apple Developer Technical "
  101.             "Support, ADS group.\nCopyright ©  1991-19"
  102.             "93 Apple Computer Inc.\nWritten by C.K. H"
  103.             "aun (<TR>)."
  104.         },
  105.         /* [4] */
  106.         {60, 80, 78, 225},
  107.         StaticText {
  108.             disabled,
  109.             "version 1.0"
  110.         }
  111.     }
  112. };
  113.  
  114. resource 'DITL' (129, purgeable) {
  115.     {    /* array DITLarray: 2 elements */
  116.         /* [1] */
  117.         {170, 90, 190, 148},
  118.         Button {
  119.             enabled,
  120.             "OK"
  121.         },
  122.         /* [2] */
  123.         {10, 40, 62, 204},
  124.         StaticText {
  125.             disabled,
  126.             "Help information should go here"
  127.         }
  128.     }
  129. };
  130.  
  131. resource 'DITL' (130, purgeable) {
  132.     {    /* array DITLarray: 3 elements */
  133.         /* [1] */
  134.         {80, 100, 100, 158},
  135.         Button {
  136.             enabled,
  137.             "Exit"
  138.         },
  139.         /* [2] */
  140.         {10, 80, 27, 237},
  141.         StaticText {
  142.             disabled,
  143.             "Bad System Version!"
  144.         },
  145.         /* [3] */
  146.         {50, 25, 66, 232},
  147.         StaticText {
  148.             disabled,
  149.             "Requires System 7 or greater."
  150.         }
  151.     }
  152. };
  153.  
  154. resource 'DITL' (131, purgeable) {
  155.     {    /* array DITLarray: 5 elements */
  156.         /* [1] */
  157.         {100, 210, 120, 268},
  158.         Button {
  159.             enabled,
  160.             "OK"
  161.         },
  162.         /* [2] */
  163.         {100, 120, 120, 178},
  164.         Button {
  165.             enabled,
  166.             "Cancel"
  167.         },
  168.         /* [3] */
  169.         {40, 23, 74, 278},
  170.         UserItem {
  171.             disabled
  172.         },
  173.         /* [4] */
  174.         {90, 200, 128, 282},
  175.         UserItem {
  176.             disabled
  177.         },
  178.         /* [5] */
  179.         {10, 71, 29, 230},
  180.         StaticText {
  181.             disabled,
  182.             "Select a range of dates"
  183.         }
  184.     }
  185. };
  186.  
  187. data 'ALRT' (128, purgeable) {
  188.     $"0028 0028 00E5 016B 0080 7744"                      /* .(.(...k.ÄwD */
  189. };
  190.  
  191. data 'ALRT' (130, purgeable) {
  192.     $"0028 0028 0095 0128 0082 5555"                      /* .(.(.ï.(.ÇUU */
  193. };
  194.  
  195. data 'DLOG' (129, "Sample Help Dialog", purgeable) {
  196.     $"0022 0028 00EA 0118 0001 0100 0100 0000"            /* .".(............ */
  197.     $"0000 0081 00"                                       /* ...Å. */
  198. };
  199.  
  200. resource 'DLOG' (130, purgeable) {
  201.     {40, 40, 177, 341},
  202.     dBoxProc,
  203.     invisible,
  204.     goAway,
  205.     0x0,
  206.     131,
  207.     "",
  208.     centerMainScreen
  209. };
  210.  
  211. resource 'STR#' (128, purgeable) {
  212.     {    /* array StringArray: 7 elements */
  213.         /* [1] */
  214.         " ",
  215.         /* [2] */
  216.         " ",
  217.         /* [3] */
  218.         " ",
  219.         /* [4] */
  220.         " ",
  221.         /* [5] */
  222.         " Data Aquisition Duration: ",
  223.         /* [6] */
  224.         " to ",
  225.         /* [7] */
  226.         "DaD start must be larger than DaD end!!!"
  227.         "!!"
  228.     }
  229. };
  230.  
  231. resource 'MBAR' (128) {
  232.     {    /* array MenuArray: 4 elements */
  233.         /* [1] */
  234.         128,
  235.         /* [2] */
  236.         129,
  237.         /* [3] */
  238.         130,
  239.         /* [4] */
  240.         131
  241.     }
  242. };
  243.  
  244. data 'WIND' (128, purgeable) {
  245.     $"0028 0028 0136 023C 0000 0100 0000 0000"            /* .(.(.6.<........ */
  246.     $"0000 0653 696D 706C 65"                             /* ...Simple */
  247. };
  248.  
  249. resource 'SIZE' (-1) {
  250.     reserved,
  251.     acceptSuspendResumeEvents,
  252.     reserved,
  253.     canBackground,
  254.     multiFinderAware,
  255.     backgroundAndForeground,
  256.     dontGetFrontClicks,
  257.     ignoreChildDiedEvents,
  258.     is32BitCompatible,
  259.     isHighLevelEventAware,
  260.     localAndRemoteHLEvents,
  261.     notStationeryAware,
  262.     dontUseTextEditServices,
  263.     reserved,
  264.     reserved,
  265.     reserved,
  266.     70000,
  267.     70000
  268. };
  269.  
  270. resource 'STR ' (128) {
  271.     "Simple Help..."
  272. };
  273.  
  274.